﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_SMS_DelMsg]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_SMS_DelMsg];
GO
CREATE PROCEDURE [dbo].[sproc_SMS_DelMsg]
    @msgids             nvarchar(2000)
    
/*

============================================================
功能:    短消息删除
参数:
    @msgids                     nvarchar,        :    消息ID字符串
    

============================================================

*/

AS
      DECLARE @Sql NVarchar(4000)
    SET @SQL = 'DELETE FROM uds_sms_msg WHERE id in (' + @msgids + ')'
    EXEC (@SQL)